<!DOCTYPE html>
<html>
<head>
    <title>添加记录</title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
    <style>
        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .form-group {
            margin-bottom: 20px;
        }
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        input[type="text"], input[type="date"], select, textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            box-sizing: border-box;
        }
        select {
            background-color: white;
        }
        textarea {
            height: 100px;
            resize: vertical;
        }
        .submit-btn {
            background-color: #337ab7;
            color: white;
            padding: 12px 30px;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            width: 100%;
        }
        .submit-btn:hover {
            background-color: #286090;
        }
    </style>
</head>
<body>
    <div class="container">
        <h2>添加记录</h2>
        <form action="/account" method="POST">
            <div class="form-group">
                <label for="title">事项</label>
                <input type="text" id="title" name="title" required>
            </div>
            
            <div class="form-group">
                <label for="time">发生时间</label>
                <input type="date" id="time" name="time" required>
            </div>
            
            <div class="form-group">
                <label for="type">类型</label>
                <select id="type" name="type" required>
                    <option value=-1>支出</option>
                    <option value=1>收入</option>
                </select>
            </div>
            
            <div class="form-group">
                <label for="account">金额</label>
                <input type="text" id="account" name="account" placeholder="请输入金额" required>
            </div>
            
            <div class="form-group">
                <label for="remarks">备注</label>
                <textarea id="remarks" name="remarks" placeholder="请输入备注信息"></textarea>
            </div>
            
            <button type="submit" class="submit-btn">添加</button>
        </form>
    </div>
</body>
</html>